package com.sangmo.boot.auth.core.interfaces;

import com.sangmo.boot.framework.common.validation.meta.Length;

import javax.validation.constraints.NotBlank;

public class GrantCodeRequest {
    @NotBlank
    private String clientId;
    @NotBlank
    private String secret;
    @NotBlank
    @Length(min = 16, max = 16, message = "error.authcode.length.wrong")
    private String randomStr;
    @NotBlank
    private String username;  //手机号
    private String scope;
    private String resource;

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public String getRandomStr() {
        return randomStr;
    }

    public void setRandomStr(String randomStr) {
        this.randomStr = randomStr;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }
}
